-- GENERATED SPELL FOR [Witherbark Axe Thrower] --


function spell0_2554(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2554', 500, 1)
end

function spell1_2554(pUnit, Event) --@Wither Touch,n/a--
pUnit:FullCastSpellOnTarget(4974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2554', 528, 1)
end

function Sorts_2554(pUnit, Event)
local choix_sorts_2554 = math.random(0, 1)
if choix_sorts_2554 == 0 then
pUnit:RegisterEvent('spell0_2554', 1, 1)
end
if choix_sorts_2554 == 1 then
pUnit:RegisterEvent('spell1_2554', 1, 1)
end
end

function mob2554_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2554', math.random(1500, 3000), 1)
end

function mob2554_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2554_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2554_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2554, 1, 'mob2554_Action')
RegisterUnitEvent(2554, 2, 'mob2554_Leave')
RegisterUnitEvent(2554, 3, 'mob2554_Kill')
RegisterUnitEvent(2554, 4, 'mob2554_Die')
